﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using nahida_desktop.Util;

namespace nahida_desktop.Pool
{
    public class ConstantPool
    {
        public static Dictionary<string, object> configMap = new Dictionary<string, object>();


        private ConstantPool() {
        }

        public static void init(string configFileUri)
        {
            Console.WriteLine("加载配置文件...");
            initConfig(configFileUri);
        }

        private static void initConfig(string configFileUri)
        {
            PropertiesParser propertiesParser = new PropertiesParser(configFileUri);
            propertiesParser.parser();
            configMap = propertiesParser.getPropertyMap();
        }

    }
}
